POV-Ray : Newsgroups : povray.general : Lorenz and Finite : Re: Lorenz and Finite Server Time
5 Aug 2024 02:21:26 EDT (-0400)
  Re: Lorenz and Finite  
From: Ian Hodge
Date: 1 Jan 2003 16:00:01
Message: <3e1356d1@news.povray.org>
I have done the same thing as you and when I run my macro with the parameter
values you set I get an error too. By putting in a few #debugs it appears
that things blow up around step 22. If you reduce ParDt things work fine.

Hope this helps.

Ian

"Rafal 'Raf256' Maj" <raf### [at] raf256com> wrote in message
news:Xns### [at] 204213191226...
> Hello,
> i'm trying to make Lorenz Fractal, and I have an error/warning
> "Reallocating finte to ...." and a moment after that Pov crashes (WinXP).
>
> I ques that my algorithm is going out-of-range and Pov is trying to hmm
> increase maximum_distance or something ?
>
> Btw. what was this algorithm? I used id a long time ago, but now I have
> problems recreating it, what is wrong with this code :
>
>   #local X=1; #local Y=1; #local Z=1;
>   #local ParA=-1.3;  #local ParB=2.3;  #local ParC=1.4;
>   #local ParDt = 0.54;
>
>   #local T=0; #while (T<2000)
>     #local NX = X + (-ParA*X*ParDt) + (ParA*Y*ParDt);
>     #local NY = Y + ( ParB*X*ParDt) - (     Y*ParDt) - (Z*X*ParDt);
>     #local NZ = Z + (-ParC*Z*ParDt) + (X*Y*ParDt);
>     #if (T>0)
>       sphere { <X,Y,Z>*5 .3 }
>     #end
>     #local X=NX; #local Y=NY; #local Z=NZ;
>   #local T=T+1; #end
>
> (ParA=-1.3 reproduces this error)
>
> --
> #macro
g(U,V)(.4*abs(sin(9*sqrt(pow(x-U,2)+pow(y-V,2))))*pow(1-min(1,(sqrt(
> pow(x-U,2)+pow(y-V,2))*.3)),2)+.9)#end#macro p(c)#if(c>1)#local
l=mod(c,100
> );g(2*div(l,10)-8,2*mod(l,10)-8)*p(div(c,100))#else 1#end#end
light_source{
> y 2}sphere{z*20
9pigment{function{p(26252423)*p(36455644)*p(66656463)}}}//M


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.